package com.kukudb.captcharepeater.serveice.interFaceTemp;

import com.kukudb.captcharepeater.pojo.Promoters;
import com.kukudb.captcharepeater.pojo.ResponseMessage;
import com.kukudb.captcharepeater.pojo.Users;
import jakarta.servlet.http.HttpSession;

import java.util.List;

public interface AdminServericeInterface {
    ResponseMessage<List<Users>> getUserList();

    ResponseMessage<String> setIsSuccess(Users users);

    ResponseMessage<String> deleteUsers(Users users);

    ResponseMessage<String> addPromoter(Promoters promoters);

    Promoters login(Promoters promoters, HttpSession session);

    boolean isAdmin(Integer userId);

    ResponseMessage<List<Users>> getUserList(Integer userId);

    ResponseMessage<String> deleteUsers(Integer userId, Users users);

    ResponseMessage<String> setIsSuccess(Users users,Integer userId);

    ResponseMessage<String> updatePromoter(Promoters promoters);

    ResponseMessage<String> updatePromoter(HttpSession session, Promoters promoters);

    ResponseMessage<String> deletePromoter(Promoters promoters);

    ResponseMessage<String> deletePromoter(HttpSession session, Promoters promoters);

    ResponseMessage<List<Promoters>> getPromoterList();
}
